<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		String a=request.getParameter("a");
		String b=request.getParameter("b");
		if(a.equals("tom")&&b.equals("jenny")){
			System.out.println("登录成功");
			%>
			<jsp:forward page="success.jsp">
				<jsp:param name="a" value="<%=a %>"/>
				<jsp:param name="b" value="<%=b %>"/>
			</jsp:forward>
			<%
		}
		else {
			System.out.println("登录失败，请重新登录");
			%>
			<jsp:forward page="login.jsp"/>
			<%
		}
	%>
</body>
</html>